package com.zmn.oms.services.interfaces.conf.attachment;

import com.zmn.oms.model.entity.conf.attachment.city.ConfOrderAttachmentCity;
import com.zmn.oms.model.entity.conf.attachment.city.ConfOrderAttachmentCityQuery;

import java.util.List;

/**
 * 描述: 附件配置-城市基础接口类
 *
 * @author weilai
 * @since 2022-06-08 17:50:43
 **/
public interface ConfOrderAttachmentCityService {

    /**
     * 描述: 根据id查询数据
     *
     * @param id id
     * @return ConfOrderAttachmentCity
     * @author weilai
     * @since 2022-06-08 17:50:43
     **/
    ConfOrderAttachmentCity findById(Integer id);

    /**
     * 描述: 按条件查询数据 支持分页
     *
     * @param query 查询对象
     * @return List<ConfOrderAttachmentCity>
     * @author weilai
     * @since 2022-06-08 17:50:43
     **/
    List<ConfOrderAttachmentCity> listPageByQuery(ConfOrderAttachmentCityQuery query);

    /**
     * 描述: 按条件查询数据 不支持分页
     *
     * @param query 查询对象
     * @author weilai
     * @since 2022-06-08 17:50:43
     **/
    List<ConfOrderAttachmentCity> listByQuery(ConfOrderAttachmentCityQuery query);


    /**
     * 描述: 批量查询
     *
     * @param confOrderAttachmentIds 照片配置id
     * @author weilai
     * @since 2022-06-08 17:50:43
     **/
    List<ConfOrderAttachmentCity> listBatch(List<Integer> confOrderAttachmentIds);

    /**
     * 描述: 根据查询条件统计满足条件的数据条数
     *
     * @param query 查询对象
     * @return: Integer
     * @auther: weilai
     * @since: 2022-06-08 17:50:43
     */
    Integer countByQuery(ConfOrderAttachmentCityQuery query);

    /**
     * 描述: 根据id修改数据 id为必传
     *
     * @param ConfOrderAttachmentCity 待修改数据
     * @return java.lang.Integer
     * @author weilai
     * @since 2022-06-08 17:50:43
     **/
    Integer updateByKey(ConfOrderAttachmentCity ConfOrderAttachmentCity);

    /**
     * 描述: 新增数据
     *
     * @param ConfOrderAttachmentCity 待新增数据
     * @return java.lang.Integer 主键key
     * @author weilai
     * @since 2022-06-08 17:50:43
     **/
    Integer insert(ConfOrderAttachmentCity ConfOrderAttachmentCity);

    /**
     * 描述: 批量新增数据
     *
     * @param confOrderAttachmentCities 待新增数据
     * @return java.lang.Integer 主键key
     * @author weilai
     * @since 2022-06-08 17:50:43
     **/
    Integer insertBatch(List<ConfOrderAttachmentCity> confOrderAttachmentCities);

    /**
     * 描述: 根据主键删除数据
     *
     * @param id
     * @return: 执行结果码
     * @auther: weilai
     * @since: 2022-06-08 17:50:43
     */
    Integer deleteByKey(Integer id);


    /**
     * 描述: 根据照片配置Id删除数据
     *
     * @param attachmentId 照片配置Id
     * @return: 执行结果码
     * @auther: weilai
     * @since: 2022-06-08 17:50:43
     */
    Integer deleteByAttachmentId(Integer attachmentId);
}

